package com.heima.pri02;

import java.io.*;

public class ZiFuHuanChongLiuWrite {
    public static void main(String[] args) throws IOException {
        BufferedWriter bi = new BufferedWriter(new FileWriter("day11\\a.txt"));
        //写出数据
        bi.write(97);
        char[] chars = {99, 98, 100, 101};
        bi.write(chars);
        bi.write(chars, 0, 4);
        bi.write("黑猫警长");
        String line="a,b,c,d";
        bi.write(line,0,4);
        bi.flush();
        bi.close();
    }

}


